#ifndef POINT2D_H_
#define POINT2D_H_

namespace Lame3d
{
	class Point2d
	{
		public:
			Point2d(float x=0, float y=0);
			Point2d(const Point2d &p);
			~Point2d();
			
			Point2d& operator+=(const Point2d &p);
			Point2d& operator-=(const Point2d &p);
			Point2d& operator*=(float f);
			Point2d& operator/=(float f);
			
			float& operator[](int i);
			float operator[](int i) const;
			
		protected:
			float coords[2];
	};
}

#endif /*POINT2D_H_*/
